def fun1():
    pass
class Demo02:
    def __init__(self,sname,sage,sgender,scourse):
        self.sname=sname
        self.sage=sage
        self.sgender=sgender
        self.scource=scourse

    def study(self):
        print(self.sname+ '喜欢写代码')
d1=Demo02('a',10,'男',50)
print(d1.study())
